package com.woniuxy.service;

import com.woniuxy.entity.Activity;
import com.woniuxy.util.Page;

import java.util.List;
import java.util.Map;

public interface ActiveService {

    List<Object> selectAllCampAndTypes() throws Exception;

    List<Map<String, Object>> selectAllActive(Page page,Integer campId, Integer typeId, Integer status) throws Exception;

    int selectCount(Integer campId, Integer typeId, Integer status) throws Exception;

    void insertActivity(Activity activity, String[] url) throws Exception;

    void deleteActActiveById(Integer actId) throws Exception;

    void updateActiveById(Activity activity, Integer[] deleteImgId, String[] url) throws Exception;

    void updateActiveStatusById(Integer actId) throws Exception;

    int selectOrderCount(Integer campId, Integer actId, Integer status) throws Exception;

    List<Map<String, Object>> selectAllActOrderCampAndTypes(Page page, Integer campId, Integer actId, Integer status) throws Exception;
}
